package com.zft.userwalletmanager.web.request;

import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Data
public class WalletCreditRequest {
    /**
     * 订单号
     */
    @NotBlank(message = "orderId is null")
    private String orderId;
    /**
     * 钱包号
     */
    @NotBlank(message = "userId is null")
    private String userId;
    /**
     * 交易金额
     */
    @NotNull(message = "amount is null")
    @Min(value = 1, message = "amount must > 0")
    private Long amount;
    /**
     * 币种
     */
    @NotBlank(message = "currency is null")
    private String walletCurrency;
    /**
     * 交易对手
     */
    @NotBlank(message = "counterPartyWalletNo is null")
    private String counterPartyWalletNo;
}
